Repository navigation
fix(release): address feature-freeze automation review follow-ups - #8360
fr4nc1sc0-r4m0n wants to merge 2 commits into
Conversation
Use nested go-github ListOptions, drop the backport label from PR-A, push before reusing open PRs, skip LatestRelease lookup on feature freeze, and preserve release-tracker text after the managed PR list.
|
This pull request does not have a backport label. Could you fix it @fr4nc1sc0-r4m0n? 🙏
|
|
Tick the box to add this pull request to the merge queue (same as
|
There was a problem hiding this comment.
🟡 Changes recommended
PR-A reruns retain a backport label that can send the next-minor bump onto a frozen release line, and managed-block regeneration still deletes operator notes.
2 open issues
What changed in this PR
This PR addresses follow-up fixes to Fleet Server’s Mage release automation, improving feature-freeze safety, rerun behavior, and release-tracker updates.
Changes:
- Correct GitHub API pagination options and remove the backport label from newly created PR-A instances.
- Push prepared commits before reusing open PRs and skip the unused latest-release lookup during feature freeze.
- Preserve trailing level-two Markdown sections in release trackers and add regression assertions.
| File | Description |
|---|---|
dev-tools/mage/release/workflows.go |
Adjusts PR-A labels, feature-freeze initialization, and push ordering. |
dev-tools/mage/release/workflows_test.go |
Asserts PR-A excludes the release-branch backport label. |
dev-tools/mage/release/issue.go |
Separates the managed PR checklist from trailing sections. |
dev-tools/mage/release/issue_test.go |
Tests trailing-section preservation and repeat-update behavior. |
dev-tools/mage/release/github.go |
Fixes embedded pagination options in list and search requests. |
Review effort: Balanced
… split Remove leftover backport-* labels when reconciling PR-A, keep only the PR checklist as the managed release-tracker block, and use promoted PerPage fields so mage check:fix stays clean.
There was a problem hiding this comment.
🟡 Changes recommended
The release package still cannot compile because pagination literals directly key the promoted PerPage field, and checklist regeneration can delete non-PR operator tasks.
2 open issues
2 resolved since last review
Review effort: Balanced
| Draft bool | ||
| Reviewers []string | ||
| Labels []string | ||
| RemoveLabels []string // removed on create/reuse (e.g. leftover backport-* on PR-A) |
| } | ||
|
|
||
| func isManagedPRChecklistLine(trimmed string) bool { | ||
| if strings.HasPrefix(trimmed, "- [") { |


Motivation
Copilot review on the 9.4 backport of the feature-freeze Mage work (#8331) called out several real bugs that are also present on
mainafter #7339. Fixing them here first gives a clean cherry-pick for the backport lines instead of patching conflicted Mergify branches in place.What is the problem this PR solves?
Release automation under
dev-tools/mage/releasehad five issues:PerPagekeys ingo-githubcomposite literals (does not compile)backport-{branch}label while also bumping main to the next minor and adding the Mergify rule for that label, so merging PR-A could backport the next-minor bump onto the frozen linefinalizePRreturned an existing open PR before pushing, so reruns could leave the remote tip behind after local prep commitsensureLatestRelease, which fails for the first release of a new major and is unused by that workflow## PRs, wiping later sections and operator notesHow does this PR solve the problem?
ListOptions: github.ListOptions{PerPage: N}in GitHub list/search callsensureLatestReleaseinRunMajorMinorRelease(patch path unchanged)How to test this PR locally
go test ./dev-tools/mage/release/... ./dev-tools/mage/ -count=1Design Checklist
Checklist
./changelog/fragmentsusing the changelog tool — skipped viaskip-changelog(CI / release tooling)Related issues